<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>d1</title>
  <link rel="stylesheet" href="../element/index.css">
  <script src="../js/vue.js"></script>
  <script src="../element/index.js"></script>
</head>
<body>

<div id="app">
  <el-button @click="visible=true">Button</el-button>
  <el-dialog :visible.sync="visible" title="Hello World">
    <p>刘湘大聪明来了</p>
  </el-dialog>
</div>
</body>
<script>
  new Vue({
    el:"#app",
    data:function(){
      return{visible:false}
    }
  })
</script>
</html>